package show.marvelous.domain.chessgame.constans;

/**
 * The enum Piece color enum.
 * @author Kris 2021/8/17
 */
public enum AirPlanColorEnum{
    /**
     *Red piece color enum.
     */
    RED("红色"){
        @Override
        public AirPlanColorEnum nextColor(){
            return YELLOW;
        }
    },
    /**
     *Blue piece color enum.
     */
    BLUE("蓝色"){
        @Override
        public AirPlanColorEnum nextColor(){
            return GREEN;
        }
    },
    /**
     *Yellow piece color enum.
     */
    YELLOW("黄色"){
        @Override
        public AirPlanColorEnum nextColor(){
            return BLUE;
        }
    },
    /**
     *Green piece color enum.
     */
    GREEN("绿色"){
        @Override
        public AirPlanColorEnum nextColor(){
            return RED;
        }
    };

    private final String colorName;

    AirPlanColorEnum(String colorName){
        this.colorName = colorName;
    }

    /**
     * Get color name string.
     *
     * @return the string
     */
    public String getColorName(){
        return colorName;
    }

    /**
     * Next color piece color enum.
     *
     * @return the piece color enum
     */
    public abstract AirPlanColorEnum nextColor();
}
